package com.yj.dao.resource;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.yj.model.resource.ResourceInfo;
import com.yj.model.resource.ResourceInfoQueryBO;

@Repository
public interface ResourceDao {
	void saveInstanceInfo(ResourceInfo resourceInfo);

	int updateInstanceInfo(ResourceInfo resourceInfo);

	int pageCount(ResourceInfoQueryBO resourceInfoQueryBO);

	List<ResourceInfoQueryBO> pageQuery(ResourceInfoQueryBO resourceInfoQueryBO);

	ResourceInfo getInstanceInfo(String instanceId);

	List<ResourceInfoQueryBO> listResources(ResourceInfoQueryBO resourceInfoQueryBO);

	int canModify(ResourceInfo instanceInfo);
}
